<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="shortcut icon" type="image/x-icon" th:href="@{/images/logo.jpg}"/>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" th:href="@{/css/animate.css}">
    <link rel="stylesheet" th:href="@{/css/typo.css}">
    <link rel="stylesheet" th:href="@{/lib/editormd/css/editormd.css}">
    <link rel="stylesheet" th:href="@{/lib/prism/prism.css}">
    <link rel="stylesheet" th:href="@{/lib/tocbot/tocbot.css}">
    <link rel="stylesheet" th:href="@{/css/me.css}">

    <title th:replace="${title}">title</title>
</head>
<body>
<nav th:fragment="menu(n)" class="ui inverted vertical segment m-padding-tb-mini">
     <div class="ui m-container">
    <div class="ui inverted secondary stackable menu m-tb-center">
        <h2 class="ui header item">SeekBlog</h2>
        <a th:href="@{/admin/index}" class="m-item item m-mobile-hide" th:classappend="${n==1}?'active'"><i class="home icon"></i>首页</a>
        <a th:href="@{/admin/blogs}" class="m-item item m-mobile-hide" th:classappend="${n==2}?'active'"><i class="idea icon"></i>博客</a>
        <a th:href="@{/admin/types}" class="m-item item m-mobile-hide" th:classappend="${n==3}?'active'"><i class="tags icon"></i>分类</a>
        <a th:href="@{/admin/tags}" class="m-item item m-mobile-hide" th:classappend="${n==4}?'active'"><i class="home icon"></i>标签</a>
        <div class="right item m-mobile-hide">
            <div class="ui dropdown item">
                <div class="text">
                    <img class="ui avatar image" th:src="@{${session.user.avatar}}">
                    <span th:text="${session.user.nickname}">seek</span>
                </div>
                <div class="menu">
                    <a th:href="@{/admin/logout}" class="item">注销</a>
                </div>
            </div>
        </div>
        <a href="#" class="ui black button btn-sidebar m-top-right m-mobile-show m-margin-tb"><i class="sidebar icon" style="font-size: 22px;"></i></a>
    </div>
     </div>
</nav>


<footer th:fragment="footer" class="ui inverted vertical segment m-stick-bottom">
    <div class="ui center aligned container">
        <div class="ui stackable inverted divided grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img th:src="@{/images/wechat.jpg}" class="ui rounded image" alt="微信" style="width: 120px;">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted hander">new blog</h4>
                <div class="ui inverted link list">
                    <a href="" class="item m-opacity-mini">????</a>
                    <a href="" class="item m-opacity-mini">????</a>
                    <a href="" class="item m-opacity-mini">????</a>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header">联系我</h4>
                <div class="ui inverted link list">
                    <a href="javascript:;" class="item m-opacity-mini">telephone:<span th:text="#{me.telephone}"></span></a>
                    <a href="javascript:;" class="item m-opacity-mini">Email:<span th:text="#{me.email}"></span></a>
                    <a href="javascript:;" class="item m-opacity-mini">QQ:<span th:text="#{me.qq}"></span></a>
                    <a href="javascript:;" class="item m-opacity-mini">WeChat:<span th:text="#{me.wechat}"></span></a>
                </div>
            </div>
            <div class="six wide column">
                <h4 class="ui inverted header">SeekBlog</h4>
                <p class="ui inverted m-opacity-mini">本博客是使用springboot与mybatis实现的，数据库采用的是MySQL，前端页面用的是semantic-ui，集合了markdown插件，使用tocbot插件生成文章目录</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p>Copyright <i class="copyright outline icon"></i>2020-2021 Seek Designed by Seek</p>
    </div>
</footer>

<th:block th:fragment="script">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
    <script th:src="@{/lib/prism/prism.js}"></script>
    <script th:src="@{/lib/tocbot/tocbot.js}"></script>
    <script th:src="@{/lib/qrcode/qrcode.js}"></script>
    <script th:src="@{/lib/editormd/editormd.min.js}"></script>
    <script th:src="@{/lib/echarts/echarts.js}"></script>
    <script th:src="@{/js/me.js}"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.3/jquery.scrollTo.min.js"></script>
</th:block>
</body>
</html>
